
from django.urls import path, include

from apps.goods import views
from apps.goods.views import MysearchView

urlpatterns = [
   path('index/', views.IndexView.as_view()),
   path('list/<category_id>/skus/', views.ListView.as_view()),
   path('hot/<category_id2>/', views.HotGoodsView.as_view()),
  # 搜索
   path('search/',MysearchView()),
   # 商品详细
   path('detail/<sku_id>',views.DetailView.as_view()),
   # 统计分类商品的访问量
   path('detail/visit/<category_id>/',views.visitCountView.as_view()),
   # 保存用户浏览记录
   path('browse_histories/',views.UserBrowseHistory.as_view())


]